package com.fsy.spring.strategy;

/**
 * Created by shuangyu.feng on 2017/7/27.
 */
public class Add extends AbstractCalculator implements ICalculator{

	public int calculate(String exp) {
		int[] res = split(exp,"\\+");
		return res[0] + res[1];
	}
}
